package bstsetcode;

import java.util.Arrays;

/**
 * @author noob
 * @version 1.0
 * @date 2021/3/14 8:00
 */
public class Main {

    public static void main(String[] args) {
        int[] arr = new int[10];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = i;
        }

        for (int e : arr){
            System.out.print(e + " ");
        }
        System.out.println();

//        流式编程打印数组：
        Arrays.stream(arr).forEach(System.out::print);
        System.out.println();







        int[] scores = new int[]{100,200,9527};
        for (int i = 0; i < scores.length; i++) {
            System.out.println(scores[i]);
        }


    }
}
